import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import elementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import axios from 'axios'
import $ from "jquery"

Vue.config.productionTip = false
Vue.use(elementUI)
/******axio全局配置******/

//在跨域请求时，会携带用户凭证
axios.defaults.withCredentials = true
//请求超时时间,毫秒
axios.defaults.timeout = 10000
//响应拦截器
axios.interceptors.response.use(resp => {
	return resp;
}, error => {
	alert(`服务器异常:${error.message}!!`);
})

Vue.prototype.$http = axios
Vue.prototype.$ = $

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
